home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Pendisplay.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  1.8 KB  |  57 lines

  1. //
  2. //  $VER: Pendisplay.h  1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_PENDISPLAY_H
  28. #define CPP_TWIMUI_PENDISPLAY_H
  29.  
  30. #ifndef CPP_TWIMUI_AREA_H
  31. #include <classes/twimui/area.h>
  32. #endif
  33.  
  34. class MUIPendisplay : public MUIArea
  35.     {
  36.     protected:
  37.         virtual const ULONG ClassNum() const;
  38.         MUIPendisplay(const STRPTR cl) : MUIArea(cl) { };
  39.     public:
  40.         MUIPendisplay(const struct TagItem *t) : MUIArea(MUIC_Pendisplay) { init(t); };
  41.         MUIPendisplay(const Tag, ...);
  42.         MUIPendisplay() : MUIArea(MUIC_Pendisplay) { };
  43.         MUIPendisplay(const MUIPendisplay &);
  44.         virtual ~MUIPendisplay();
  45.         MUIPendisplay &operator= (const MUIPendisplay &);
  46.         Object *Pen() const { return((Object *)get(MUIA_Pendisplay_Pen,NULL)); };
  47.         void Reference(const Object *p) { set(MUIA_Pendisplay_Reference,(ULONG)p); };
  48.         Object *Reference() const { return((Object *)get(MUIA_Pendisplay_Reference,NULL)); };
  49.         void Spec(const struct MUI_PenSpec *p) { set(MUIA_Pendisplay_Spec,(ULONG)p); };
  50.         struct MUI_PenSpec *Spec() const { return((struct MUI_PenSpec *)get(MUIA_Pendisplay_Spec,NULL)); };
  51.         void SetColormap(LONG p) { dom(MUIM_Pendisplay_SetColormap,(ULONG)p); };
  52.         void SetMUIPen(LONG p) { dom(MUIM_Pendisplay_SetMUIPen,(ULONG)p); };
  53.         void SetRGB(ULONG p1, ULONG p2, ULONG p3) { dom(MUIM_Pendisplay_SetRGB,p1,p2,p3); };
  54.     };
  55.  
  56. #endif
  57.